package team.seekers.hula.course.structure.chapter.entity.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import team.seekers.hula.common.entity.BaseDTO;

import java.util.Date;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ChapterManageDTO extends BaseDTO {

    private String id;

    private String name;
    /**
     * 所属的课程id
     */
    private Long csId;
    /**
     * 章节的id集合
     */
    private List<String> sectionIds;
    /**
     * 单元测试id集合
     */
    private List<String> examIds;
    /**
     * 章顺序（第几章）
     */
    private Integer sequence;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private Date gmtCreate;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private Date gmtModified;
}
